package com.lemon.jvm.hotspot.src.share.vm.oops;

import com.lemon.jvm.hotspot.src.share.vm.utilities.AccessFlags;

public class MethodInfo {

    private InstanceKlass belongKlass;
    private AccessFlags accessFlags;

    private int nameIndex;
    private int descriptorIndex;
    private int attributesCount;
    private CodeAttributeInfo[] attributeInfos;

    private String methodName;

    public InstanceKlass getBelongKlass() {
        return belongKlass;
    }

    public void setBelongKlass(InstanceKlass belongKlass) {
        this.belongKlass = belongKlass;
    }

    public AccessFlags getAccessFlags() {
        return accessFlags;
    }

    public void setAccessFlags(AccessFlags accessFlags) {
        this.accessFlags = accessFlags;
    }

    public int getNameIndex() {
        return nameIndex;
    }

    public void setNameIndex(int nameIndex) {
        this.nameIndex = nameIndex;
    }

    public int getDescriptorIndex() {
        return descriptorIndex;
    }

    public void setDescriptorIndex(int descriptorIndex) {
        this.descriptorIndex = descriptorIndex;
    }

    public int getAttributesCount() {
        return attributesCount;
    }

    public void setAttributesCount(int attributesCount) {
        this.attributesCount = attributesCount;
    }

    public CodeAttributeInfo[] getAttributeInfos() {
        return attributeInfos;
    }

    public void setAttributeInfos(CodeAttributeInfo[] attributeInfos) {
        this.attributeInfos = attributeInfos;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }
}
